package business.report.impl;

import business.report.PriceConsultationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.PriceConsultation;
import report.domain.PriceConsultationCriteria;
import report.mapper.PriceConsultationMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "pcService")
public class PriceConsultationServiceImpl implements PriceConsultationService{
    @Autowired
    PriceConsultationMapper priceConsultationMapper;

    @Override
    public List<PriceConsultation> getPriceConsultation() {
        PriceConsultationCriteria criteria = new PriceConsultationCriteria();
        criteria.createCriteria().getAllCriteria();
        return priceConsultationMapper.selectByExample(criteria);
    }
}
